package org.xb.CoffeeDecorator;

/**
 * @Author
 * @Description
 * @Date created in 10:23 2023/12/7
 */
public class AddSugarCoffee extends CoffeeDecorator{
    @Override
    public int cost() {
        System.out.println("添加糖费用+1元");
        return super.cost() + 1;
    }
}
